var __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (o, i) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, o) {
              t.__proto__ = o;
            }) ||
          function (t, o) {
            for (var i in o)
              Object.prototype.hasOwnProperty.call(o, i) && (t[i] = o[i]);
          })(o, i);
      };
      return function (o, i) {
        function n() {
          this.constructor = o;
        }
        if ("function" != typeof i && null !== i)
          throw new TypeError(
            "Class extends value " + String(i) + " is not a constructor or null"
          );
        t(o, i),
          (o.prototype =
            null === i
              ? Object.create(i)
              : ((n.prototype = i.prototype), new n()));
      };
    })(),
  AXWorshipDialog = (function (t) {
    function o() {
      return t.call(this) || this;
    }
    return (
      __extends(o, t),
      (o.showWorshipDialog = function (t) {
        null == this.worship &&
          ((this.worship = new o()), (this.worship.zOrder = 1e3)),
          this.worship.popup(),
          this.worship.btn_worship_baishishoutu.on(
            Laya.Event.CLICK,
            this.worship,
            this.worship.onDidClickActionFn
          ),
          this.worship.btn_worship_chuangjian.on(
            Laya.Event.CLICK,
            this.worship,
            this.worship.onDidClickActionFn
          );
      }),
      (o.prototype.onDidClickActionFn = function (t) {
        "item0" == t.target.name || t.target.name, this.close();
      }),
      (o.close = function () {
        this.worship && this.worship.close();
      }),
      o
    );
  })(ui.TabBarItemController.AXWorshipDialogUI);
